/**
 * 共用接口文档地址
 */

// import api from "./axiosApi";
import api from "@/utils/axios";

const apiList = {
  // 获取当前登录人的菜单权限
  getAuthMenu(data) {
    return api(
      {
        url: "/authority/resource",
        method: "get"
      },
      data || {}
    );
  },
  // 获取当前登录人的按钮权限
  getAuthButton(data) {
    return api(
      {
        url: "/authority/resource/findcanoperatebutton",
        method: "post"
      },
      data || {}
    );
  },
  categories(data) {
    return api(
      {
        url: "/categories",
        method: "get"
      },
      data || {}
    );
  },
  pageList(data) {
    return api(
      {
        url: "/hxmb/goal/pageList",
        method: "post"
      },
      data || {}
    );
  },
  pageDBJSJSS(data) {
    return api(
      {
        url: "/hxmb/tenThings/pageDBJSJSS",
        method: "post"
      },
      data || {}
    );
  }
};
const comApiList = { ...apiList };

export default comApiList;
